/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.marcelo.comun.database;

import java.lang.reflect.Method;
import java.lang.reflect.TypeVariable;

/**
 *
 * @author marcelo
 */
public class CSVUtil<T> {
    
    T clazz;
    String[] columnsName;
    public CSVUtil(T clazz, String[] columnsName) {
        this.clazz = clazz;
        this.columnsName = columnsName;
    }
    
    public T transforCSVtoPojo(String[] values) {
        Class clase = clazz.getClass();
        
        
        
        TypeVariable[] typeVariables =       clase.getTypeParameters();
        //Usar java reflexion
        for (String campo : columnsName ) {
            
            Method[] metodos = clase.getMethods();
        }
        
        return null;
    }
    
}
